{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=63
  Verdict: Accepted
}
var i,k,n:longint;
begin
assign(input,'input.txt');
assign(output,'output.txt');
reset(input);
rewrite(output);
read(n);
for i:=1 to n do begin
    read(k);
    if odd(i) then write(k,' ');
end;
end.